package com.nexus.all.controller;

import com.nexus.all.model.UserLevels;
import com.nexus.bean.result.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RequestMapping("/levels")
@RestController
@AllArgsConstructor
@Api(tags = "用户等级接口")
public class UserLevelsController {

    @ApiOperation(value = "用户等级", notes = "用户等级")
    @PostMapping("")
    public Result userLevel(@RequestBody UserLevels userLevels) {
        System.out.println(userLevels);
        return Result.newSuccess();
    }

}
